﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Interface
{
    [Serializable]
    public class Kanal
    {
        public int Id, Level;
        public double kapacitet, Indhold, Ind, Ud;
    }

    [Serializable]
    public class Pumpe
    {
        public int Id, TilId, FraId;
        public double KvadratmeterVandSekundet;
        public bool On, Defekt;
    }
    
    [ServiceContract]
    public interface IClsController
    {
        void Write(string txt);

        [OperationContract]
        void SetVandstand(int KanalId, double Vandstand, DateTime Dato);

        [OperationContract]
        bool StartPumpe(int PumpeId);

        [OperationContract]
        bool SlukPumpe(int PumpeId);

        [OperationContract]
        void StartFriFriAdministration();

        [OperationContract]
        void StopFriFriAdministration();

        [OperationContract]
        void DefektPumpe(int PumpeId, bool Defekt);

        [OperationContract]
        Kanal[] HentKanaler();

        [OperationContract]
        Pumpe[] HentPumper();
    }
}
